package lab01;

/**
 * Created by lady on 2017/10/16.
 */
public class Test12 {
    public static void main(String args[]) {
           int i ,sum=0;
    boolean t;
        for (i = 2; i <= 100; i = i + 1) {
                t = true;
                for (int j = 2; j < i; j++) {
        if (i % j == 0) {
        t = false;
        break;
        }
        }
        if (t) {

        System.out.print("i= " + i+"\t");
        sum=sum+1;
        if (sum%5==0) {
        System.out.println();
        }
        }
        }
        }
        }


